export const basicRoutes = [
  {
    name: 'Home',
    path: '/',
    redirect: '/recommended',
    meta: {
      title: '首页',
      show: true,
      order: 1,
      isTop: true,
    },
  },
  {
    name: 'Following',
    path: '/following',
    component: () => import('@/views/catalogue/index.vue'),
    meta: {
      rootName: 'Home',
      parentName: 'Home',
      layout: 'home',
      icon: 'i-fe:trello',
      title: '关注',
      show: true,
      isSideMenu: true,
      order: 1,
    },
  },
  {
    name: 'Recommended',
    path: '/recommended',
    component: () => import('@/views/catalogue/index.vue'),
    meta: {
      rootName: 'Home',
      parentName: 'Home',
      layout: 'home',
      icon: 'i-fe:aperture',
      title: '综合',
      isSideMenu: true,
      show: true,
      order: 1,
    },
  },
  {
    name: 'Backend',
    path: '/backend',
    component: () => import('@/views/catalogue/index.vue'),
    meta: {
      rootName: 'Home',
      layout: 'home',
      parentName: 'Home',
      icon: 'i-fe:airplay',
      title: '后端',
      show: true,
      isSideMenu: true,
      order: 3,
    },
  },
  {
    name: 'Square',
    path: '/square',
    component: () => import('@/views/square/index.vue'),
    meta: {
      title: '广场',
      show: true,
      order: 2,
      isTop: true,
    },
  },
  {
    name: 'ArticleDetail',
    path: '/articleDetail/:id',
    component: () => import('@/views/catalogue/article-detail/index.vue'),
    meta: {
      title: '文章详情',
      layout: 'articleItem',
    },
  },
  {
    name: 'Editor',
    path: '/editor',
    component: () => import('@/views/editor-page/index.vue'),
    meta: {
      title: '写文章',
      layout: 'empty',
    },
  },
  {
    name: 'ProfileUser',
    path: '/profile/user/:id',
    component: () => import('@/views/profile/user/index.vue'),
    meta: {
      title: '个人主页',
      layout: 'articleItem',
    },
  },
  {
    name: 'ProfileFootmarks',
    path: '/profile/footmarks/:id',
    component: () => import('@/views/profile/footmarks/index.vue'),
    meta: {
      title: '我的足迹',
      layout: 'articleItem',
    },
  },
  {
    name: 'Creator',
    path: '/creator',
    redirect: '/creator/home',
    meta: {
      title: '创作者中心',
    },
  },
  {
    name: 'CreatorHome',
    path: '/creator/home',
    component: () => import('@/views/creator/home/index.vue'),
    meta: {
      icon: 'i-fe:home',
      rootName: 'Creator',
      parentName: 'Creator',
      title: '首页',
      show: true,
      isSideMenu: true,
      layout: 'creator',
    },
  },
  {
    name: 'CreatorContent',
    path: '/creator/content',
    redirect: '/creator/content/article',
    meta: {
      rootName: 'Creator',
      parentName: 'Creator',
      title: '内容管理',
      icon: 'i-fe:layers',
      show: true,
      isSideMenu: true,
      layout: 'creator',
    },
  },
  {
    name: 'Article',
    path: '/creator/content/article',
    component: () => import('@/views/creator/article/index.vue'),
    meta: {
      rootName: 'Creator',
      parentName: 'CreatorContent',
      title: '文章管理',
      show: true,
      isSideMenu: true,
      layout: 'creator',
    },
  },
  {
    name: 'CreatorTool',
    path: '/creator/tool',
    redirect: '/creator/tool/import',
    meta: {
      rootName: 'Creator',
      parentName: 'Creator',
      title: '创作工具',
      icon: 'i-me:awesome',
      show: true,
      isSideMenu: true,
      layout: 'creator',
    },
  },
  {
    name: 'CreatorToolImport',
    path: '/creator/tool/import',
    component: () => import('@/views/creator/tool/import/index.vue'),
    meta: {
      rootName: 'Creator',
      parentName: 'CreatorTool',
      title: '文章导入发布',
      show: true,
      isSideMenu: true,
      layout: 'creator',
    },
  },
  {
    name: '404',
    path: '/404',
    component: () => import('@/views/error-page/404.vue'),
    meta: {
      title: '页面飞走了',
      layout: 'empty',
    },
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
  },
  {
    name: '403',
    path: '/403',
    component: () => import('@/views/error-page/403.vue'),
    meta: {
      title: '没有权限',
      layout: 'empty',
    },
  },
]
